#ifndef H_SD
#define H_SD

#define BLOCK_SIZE 512

/* external functions */
int sdInit(void);
void sdDisable(void);
void sdEnable(void);
#define sdWait sd_wait_notbusy /* to maintain naming standard, sdWait - external, sd_wait_notbusy - internal */

void sd_wait_notbusy(void);
int sd_read_block(unsigned long int blockaddr,unsigned char *data);
int sd_write_block(unsigned long int blockaddr,unsigned char *data);

#endif
